package com.fhz.shop.ui.search;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.QuickViewHolder;
import com.fhz.shop.R;
import com.fhz.shop.entity.SearchBean;

import java.util.List;

/**
 * 时间:2023/9/1
 *
 * @author Mr.Feng
 * 简述:
 */
public class SearchRVAdapter  extends BaseQuickAdapter<SearchBean, QuickViewHolder>{


    public SearchRVAdapter(@NonNull List<? extends SearchBean> items) {
        super(items);
    }


    @Override
    protected void onBindViewHolder(@NonNull QuickViewHolder quickViewHolder, int i, @Nullable SearchBean searchBean) {
        quickViewHolder.getView(R.id.search_item_del);
        quickViewHolder.getView(R.id.search_item_name);
    }

    @NonNull
    @Override
    protected QuickViewHolder onCreateViewHolder(@NonNull Context context, @NonNull ViewGroup viewGroup, int i) {
        return new QuickViewHolder(R.layout.search_item_layout, viewGroup);
    }
}
